<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript"
        src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=您的密钥">
    <title>我的第一个地图</title>
    <style type="text/css">
        #container {
            height: 600px;
            width: 800px;
        }
    </style>
</head>
 
<body>
    <div id="container"></div>
</body>
<script>
    var map = new BMapGL.Map("container");// 创建地图实例 
    var point = new BMapGL.Point(116.404, 39.915);// 创建点坐标 
    map.centerAndZoom(point, 15);// 初始化地图，设置中心点坐标和地图级别 
</script>
 
</html>